Here's an example method that's more complex:
(nnimap "imap.gmail.com"
(nnimap-inbox "INBOX")
(nnimap-split-methods default)
(nnimap-expunge t)
(nnimap-stream ssl))
nnimap-addressnnimap-server-port"imap" or
"imaps".nnimap-streamnnimap should connect to the server.
Possible values are:
undecidedssl setting, and then tries the
network setting.sslnetworkstarttlsshellnnimap-shell-program to be what you need.nnimap-authenticatoranonymous.nnimap-expungenil, expunge articles after deleting
them. This is always done if the server supports UID EXPUNGE,
but it's not done by default on servers that doesn't support
that command.nnimap-streamingIMAP server support fast
streaming of data. If you have problems connecting to the
server, try setting this to nil.nnimap-fetch-partial-articlesnil, fetch partial articles from the
server. If set to a string, then it's interpreted as a regexp,
and parts that have matching types will be fetched. For
instance, ‘"text/"’ will fetch all textual
parts, while leaving the rest on the server.